Calculates a Finite Impulse Response Filter.
[Visual Basic]
Overloads Public Shared Function FiniteImpulseResponse( _
ByVal sc As SeriesCollection, _
ByVal elementValue As ElementValue, _
ByVal weights() As Double _
) As SeriesCollection
[C#]
public static SeriesCollection FiniteImpulseResponse(
SeriesCollection sc,
ElementValue elementValue,
double [] weights
);
Exception | Description |
---|---|
Thrown if the length of the given series, s, is less than the length of weights double array or if any elements of the s is strictly negative. |
This is a type of smoothing filter that assigns different weights to prices from the past.
The FIR indicator is evaluated by the following formula:
FIR = ((historicalValues[i]*weights[0]) + historicalValues[i-1]*wights[1] + ...)/(Sum of weights)
FinancialEngine Class | FinancialEngine Members | Overload List
2002 - 2005 Webavail Productions Inc. & Corporate Web Solutions Ltd.. All Rights Reserved.